﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;using DAL;

namespace BLL
{
    public class OrderBLL
    {
        //更改评论状态
        public static bool updateConmmentBLL(int OrderID)
        {
            return OrderDAL.updateConmmentDAL(OrderID);
        }
        //删除
        public static bool deleteByIDBLL(int OrderID)
        {
            return OrderDAL.deleteByIDDAL(OrderID);
        }
        //增
        public static bool addOrderBLL(Order order)
        {
            return OrderDAL.addOederDAL(order);
        }
        //查询
        public static List<Order> getAllByUserBLL(int UserID)
        {
            return OrderDAL.getAllByUserDAL(UserID);
        }
        //联表查询Order_goods
        public static List<Order_Goods> GetOrder_GoodsBLL(int UserID)
        {
            return OrderDAL.GetOrder_GoodsDAL(UserID);
        }
    }
}
